const String assetJson = "lib/assets/json/";
const String assetImage = "lib/assets/images/";
/**
 * json配置
 */

///国家代码json文件配置
String configRegionJson = "${assetJson}region.json";
///首页操作按钮json文件配置
String configHomeJson = "${assetJson}home.json";
///我的item功能json文件配置
String configMineJson = "${assetJson}mine.json";
///我的-语言切换json文件配置
String configLanguageJson = "${assetJson}language.json";
const double designWidth = 360;
const double designHeight = 640;

class CommonConfig {
  initData() {}

  ///自己检查如果必须按配置文件为空
  static bool selfCheck() {
    bool isFinish = true;
    if (configUrl.isEmpty) {
      isFinish = false;
    }
    if (configChannel.isEmpty) {
      isFinish = false;
    }
    if (configLocal.isEmpty) {
      isFinish = false;
    }
    if (configPaymentType.isEmpty) {
      isFinish = false;
    }
    return isFinish;
  }

  /**
   *************CONFIG NORMAL DATA************
   * */

  ///云地址
  static late final String configUrl;

  ///渠道名
  static late final String configChannel;

  ///默认语言
  static late final String configLocal;

  ///默认支付类型
  static late final String configPaymentType;

  ///手动支付方式
  static String? configManualPaymentType;

  ///支付类型列表
  static List configPaymentList = [configPaymentType];

  ///手动支付，支持代扣
  static bool configPaymentWithhold = true;

  ///默认国家代码
  static String configCountryCode = "+86";

  ///默认国旗，第一次需加载本地
  static String configCountryIcon = "icon_zh";

  ///系统检查更新
  static bool configSystemCheckUpdate = true;

  /**
   *************CONFIG NORMAL DATA************
   * */

  ///

  ///激光推送appKey
  static String configJPushAppKey = "";
  static String configJPushChannel = "";

  /**
   * 登陆用户协议
   */

  ///用户协议
  static String configUserPolicy = "";

  ///隐私协议
  static String configPrivacyPolicy = "";

  /**
   *  其他配置
   */

  ///智能货柜的扫描的host
  static List configAIFridgeUrlList = [
    "https://b.cloudpick.com",
    "https://cp.cloudpick.com"
  ];

  ///字体
  static String configFont = "";

  ///联系方式
  static String contactEmail = "CloudPick";

  ///订单详情是否显示发票按钮
  static bool isShowInvoice = false;
}
